3.195 \(\int \frac{c+d x+e x^2+f x^3+g x^4+h x^5}{\left (a+b x^4\right )^2} \, dx\)

Optimal. Leaf size=353 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{16 \sqrt{2} a^{7/4} b^{5/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{16 \sqrt{2} a^{7/4} b^{5/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{8 \sqrt{2} a^{7/4} b^{5/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{8 \sqrt{2} a^{7/4} b^{5/4}}+\frac{(a h+b d) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{x \left (x (b d-a h)-a g+b c+b e x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )} \]

[Out]

(x*(b*c - a*g + (b*d - a*h)*x + b*e*x^2 + b*f*x^3))/(4*a*b*(a + b*x^4)) + ((b*d
+ a*h)*ArcTan[(Sqrt[b]*x^2)/Sqrt[a]])/(4*a^(3/2)*b^(3/2)) - ((3*b*c + Sqrt[a]*Sq
rt[b]*e + a*g)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(8*Sqrt[2]*a^(7/4)*b^(5/
4)) + ((3*b*c + Sqrt[a]*Sqrt[b]*e + a*g)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)]
)/(8*Sqrt[2]*a^(7/4)*b^(5/4)) - ((3*b*c - Sqrt[a]*Sqrt[b]*e + a*g)*Log[Sqrt[a] -
 Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(16*Sqrt[2]*a^(7/4)*b^(5/4)) + ((3*b*
c - Sqrt[a]*Sqrt[b]*e + a*g)*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x
^2])/(16*Sqrt[2]*a^(7/4)*b^(5/4))

_______________________________________________________________________________________

Rubi [A]  time = 0.779079, antiderivative size = 353, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 10, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{16 \sqrt{2} a^{7/4} b^{5/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{16 \sqrt{2} a^{7/4} b^{5/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{8 \sqrt{2} a^{7/4} b^{5/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{8 \sqrt{2} a^{7/4} b^{5/4}}+\frac{(a h+b d) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{x \left (x (b d-a h)-a g+b c+b e x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )} \]

Antiderivative was successfully verified.

[In]  Int[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5)/(a + b*x^4)^2,x]

[Out]

(x*(b*c - a*g + (b*d - a*h)*x + b*e*x^2 + b*f*x^3))/(4*a*b*(a + b*x^4)) + ((b*d
+ a*h)*ArcTan[(Sqrt[b]*x^2)/Sqrt[a]])/(4*a^(3/2)*b^(3/2)) - ((3*b*c + Sqrt[a]*Sq
rt[b]*e + a*g)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(8*Sqrt[2]*a^(7/4)*b^(5/
4)) + ((3*b*c + Sqrt[a]*Sqrt[b]*e + a*g)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)]
)/(8*Sqrt[2]*a^(7/4)*b^(5/4)) - ((3*b*c - Sqrt[a]*Sqrt[b]*e + a*g)*Log[Sqrt[a] -
 Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(16*Sqrt[2]*a^(7/4)*b^(5/4)) + ((3*b*
c - Sqrt[a]*Sqrt[b]*e + a*g)*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x
^2])/(16*Sqrt[2]*a^(7/4)*b^(5/4))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 131.176, size = 333, normalized size = 0.94 \[ - \frac{x \left (a g - b c - b e x^{2} - b f x^{3} + x \left (a h - b d\right )\right )}{4 a b \left (a + b x^{4}\right )} + \frac{\left (a h + b d\right ) \operatorname{atan}{\left (\frac{\sqrt{b} x^{2}}{\sqrt{a}} \right )}}{4 a^{\frac{3}{2}} b^{\frac{3}{2}}} - \frac{\sqrt{2} \left (- \sqrt{a} \sqrt{b} e + a g + 3 b c\right ) \log{\left (- \sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{32 a^{\frac{7}{4}} b^{\frac{5}{4}}} + \frac{\sqrt{2} \left (- \sqrt{a} \sqrt{b} e + a g + 3 b c\right ) \log{\left (\sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{32 a^{\frac{7}{4}} b^{\frac{5}{4}}} - \frac{\sqrt{2} \left (\sqrt{a} \sqrt{b} e + a g + 3 b c\right ) \operatorname{atan}{\left (1 - \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{16 a^{\frac{7}{4}} b^{\frac{5}{4}}} + \frac{\sqrt{2} \left (\sqrt{a} \sqrt{b} e + a g + 3 b c\right ) \operatorname{atan}{\left (1 + \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{16 a^{\frac{7}{4}} b^{\frac{5}{4}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(b*x**4+a)**2,x)

[Out]

-x*(a*g - b*c - b*e*x**2 - b*f*x**3 + x*(a*h - b*d))/(4*a*b*(a + b*x**4)) + (a*h
 + b*d)*atan(sqrt(b)*x**2/sqrt(a))/(4*a**(3/2)*b**(3/2)) - sqrt(2)*(-sqrt(a)*sqr
t(b)*e + a*g + 3*b*c)*log(-sqrt(2)*a**(1/4)*b**(3/4)*x + sqrt(a)*sqrt(b) + b*x**
2)/(32*a**(7/4)*b**(5/4)) + sqrt(2)*(-sqrt(a)*sqrt(b)*e + a*g + 3*b*c)*log(sqrt(
2)*a**(1/4)*b**(3/4)*x + sqrt(a)*sqrt(b) + b*x**2)/(32*a**(7/4)*b**(5/4)) - sqrt
(2)*(sqrt(a)*sqrt(b)*e + a*g + 3*b*c)*atan(1 - sqrt(2)*b**(1/4)*x/a**(1/4))/(16*
a**(7/4)*b**(5/4)) + sqrt(2)*(sqrt(a)*sqrt(b)*e + a*g + 3*b*c)*atan(1 + sqrt(2)*
b**(1/4)*x/a**(1/4))/(16*a**(7/4)*b**(5/4))

_______________________________________________________________________________________

Mathematica [A]  time = 0.471884, size = 359, normalized size = 1.02 \[ \frac{-2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (4 a^{5/4} h+\sqrt{2} \sqrt{a} b^{3/4} e+4 \sqrt [4]{a} b d+\sqrt{2} a \sqrt [4]{b} g+3 \sqrt{2} b^{5/4} c\right )+2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (-4 a^{5/4} h+\sqrt{2} \sqrt{a} b^{3/4} e-4 \sqrt [4]{a} b d+\sqrt{2} a \sqrt [4]{b} g+3 \sqrt{2} b^{5/4} c\right )-\frac{8 a^{3/4} \sqrt{b} (a (f+x (g+h x))-b x (c+x (d+e x)))}{a+b x^4}+\sqrt{2} \sqrt [4]{b} \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{a} \sqrt{b} e-a g-3 b c\right )+\sqrt{2} \sqrt [4]{b} \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e+a g+3 b c\right )}{32 a^{7/4} b^{3/2}} \]

Antiderivative was successfully verified.

[In]  Integrate[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5)/(a + b*x^4)^2,x]

[Out]

((-8*a^(3/4)*Sqrt[b]*(-(b*x*(c + x*(d + e*x))) + a*(f + x*(g + h*x))))/(a + b*x^
4) - 2*(3*Sqrt[2]*b^(5/4)*c + 4*a^(1/4)*b*d + Sqrt[2]*Sqrt[a]*b^(3/4)*e + Sqrt[2
]*a*b^(1/4)*g + 4*a^(5/4)*h)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)] + 2*(3*Sqrt
[2]*b^(5/4)*c - 4*a^(1/4)*b*d + Sqrt[2]*Sqrt[a]*b^(3/4)*e + Sqrt[2]*a*b^(1/4)*g
- 4*a^(5/4)*h)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)] + Sqrt[2]*b^(1/4)*(-3*b*c
 + Sqrt[a]*Sqrt[b]*e - a*g)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^
2] + Sqrt[2]*b^(1/4)*(3*b*c - Sqrt[a]*Sqrt[b]*e + a*g)*Log[Sqrt[a] + Sqrt[2]*a^(
1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(32*a^(7/4)*b^(3/2))

_______________________________________________________________________________________

Maple [A]  time = 0.013, size = 519, normalized size = 1.5 \[{\frac{1}{b{x}^{4}+a} \left ({\frac{e{x}^{3}}{4\,a}}-{\frac{ \left ( ah-bd \right ){x}^{2}}{4\,ab}}-{\frac{ \left ( ag-bc \right ) x}{4\,ab}}-{\frac{f}{4\,b}} \right ) }+{\frac{\sqrt{2}g}{16\,ab}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{3\,c\sqrt{2}}{16\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{\sqrt{2}g}{32\,ab}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{3\,c\sqrt{2}}{32\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{\sqrt{2}g}{16\,ab}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{3\,c\sqrt{2}}{16\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{ah}{4}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{{a}^{3}{b}^{3}}}}}+{\frac{bd}{4}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{{a}^{3}{b}^{3}}}}}+{\frac{e\sqrt{2}}{32\,ab}\ln \left ({1 \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{16\,ab}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{16\,ab}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(b*x^4+a)^2,x)

[Out]

(1/4/a*e*x^3-1/4*(a*h-b*d)/a/b*x^2-1/4*(a*g-b*c)/a/b*x-1/4*f/b)/(b*x^4+a)+1/16/b
/a*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)*g+3/16*c/a^2*(a/b)^(1/4)*
2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)+1/32/b/a*(a/b)^(1/4)*2^(1/2)*ln((x^2+(a/
b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))*g+3/32*
c/a^2*(a/b)^(1/4)*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b)^
(1/4)*x*2^(1/2)+(a/b)^(1/2)))+1/16/b/a*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^
(1/4)*x+1)*g+3/16*c/a^2*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x+1)+1/4/
(a^3*b^3)^(1/2)*arctan(x^2*(b/a)^(1/2))*a*h+1/4*b*d/(a^3*b^3)^(1/2)*arctan(x^2*(
b/a)^(1/2))+1/32*e/a/b/(a/b)^(1/4)*2^(1/2)*ln((x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(
1/2))/(x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))+1/16*e/a/b/(a/b)^(1/4)*2^(1/2)*ar
ctan(2^(1/2)/(a/b)^(1/4)*x+1)+1/16*e/a/b/(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b
)^(1/4)*x-1)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a)^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a)^2,x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(b*x**4+a)**2,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.224194, size = 537, normalized size = 1.52 \[ \frac{b x^{3} e + b d x^{2} - a h x^{2} + b c x - a g x - a f}{4 \,{\left (b x^{4} + a\right )} a b} + \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{a b} b^{2} d + 2 \, \sqrt{2} \sqrt{a b} a b h + 3 \, \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (a b^{3}\right )^{\frac{1}{4}} a b g + \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{16 \, a^{2} b^{3}} + \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{a b} b^{2} d + 2 \, \sqrt{2} \sqrt{a b} a b h + 3 \, \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (a b^{3}\right )^{\frac{1}{4}} a b g + \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{16 \, a^{2} b^{3}} + \frac{\sqrt{2}{\left (3 \, \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (a b^{3}\right )^{\frac{1}{4}} a b g - \left (a b^{3}\right )^{\frac{3}{4}} e\right )}{\rm ln}\left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{32 \, a^{2} b^{3}} - \frac{\sqrt{2}{\left (3 \, \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (a b^{3}\right )^{\frac{1}{4}} a b g - \left (a b^{3}\right )^{\frac{3}{4}} e\right )}{\rm ln}\left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{32 \, a^{2} b^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a)^2,x, algorithm="giac")

[Out]

1/4*(b*x^3*e + b*d*x^2 - a*h*x^2 + b*c*x - a*g*x - a*f)/((b*x^4 + a)*a*b) + 1/16
*sqrt(2)*(2*sqrt(2)*sqrt(a*b)*b^2*d + 2*sqrt(2)*sqrt(a*b)*a*b*h + 3*(a*b^3)^(1/4
)*b^2*c + (a*b^3)^(1/4)*a*b*g + (a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x + sqrt(
2)*(a/b)^(1/4))/(a/b)^(1/4))/(a^2*b^3) + 1/16*sqrt(2)*(2*sqrt(2)*sqrt(a*b)*b^2*d
 + 2*sqrt(2)*sqrt(a*b)*a*b*h + 3*(a*b^3)^(1/4)*b^2*c + (a*b^3)^(1/4)*a*b*g + (a*
b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x - sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a^2*b
^3) + 1/32*sqrt(2)*(3*(a*b^3)^(1/4)*b^2*c + (a*b^3)^(1/4)*a*b*g - (a*b^3)^(3/4)*
e)*ln(x^2 + sqrt(2)*x*(a/b)^(1/4) + sqrt(a/b))/(a^2*b^3) - 1/32*sqrt(2)*(3*(a*b^
3)^(1/4)*b^2*c + (a*b^3)^(1/4)*a*b*g - (a*b^3)^(3/4)*e)*ln(x^2 - sqrt(2)*x*(a/b)
^(1/4) + sqrt(a/b))/(a^2*b^3)